package com.baosight.risk.common.quartz;

import com.baosight.risk.api.zbaa.IZbaaTargetService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author cuishihao
 * <p>
 * 定时任务
 * 首页行业需求指标状态，调用PYTHON接口对数据值进行获取，每天一点执行一次
 */
@Slf4j
@Component("homeIndexStatusTask")
public class HomeIndexStatusTask {

    @Autowired
    private IZbaaTargetService targetService;

    public void testParams(String params, String jobId) throws Exception {
        log.info("进入定时任务——获取首页行业需求指标状态");

        Object result = targetService.getHomeIndexStatusFromPython(params, jobId);
        log.info("定时任务——获取首页行业需求指标状态");
    }

    public void testNoParams() {
        log.error("执行无参方法");
    }
}
